package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrderSettingMapper {

    /**
     * 根据日期修改可预约人数
     * @param orderSetting
     * @return
     */
    void editNumberByOrderDate(OrderSetting orderSetting);

    /**
     * 根据年月查询对应的预约设置信息
     * @param month
     * @return
     */
    List<OrderSetting> getOrderSettingByMonth(String month);


    long findCountByOrderDate(Date orderDate);


    void add(OrderSetting orderSetting);
}
